package com.tjzx.entity;

/**
 * EipProductTypeId entity. @author MyEclipse Persistence Tools
 */

public class EipProductTypeId implements java.io.Serializable {

	// Fields

	private Integer ptid;
	private String name;
	private Integer pid;
	private String remark;
	private Integer level;
	private String flag;

	// Constructors

	/** default constructor */
	public EipProductTypeId() {
	}

	/** minimal constructor */
	public EipProductTypeId(Integer ptid) {
		this.ptid = ptid;
	}

	/** full constructor */
	public EipProductTypeId(Integer ptid, String name, Integer pid,
			String remark, Integer level, String flag) {
		this.ptid = ptid;
		this.name = name;
		this.pid = pid;
		this.remark = remark;
		this.level = level;
		this.flag = flag;
	}

	// Property accessors

	public Integer getPtid() {
		return this.ptid;
	}

	public void setPtid(Integer ptid) {
		this.ptid = ptid;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Integer getPid() {
		return this.pid;
	}

	public void setPid(Integer pid) {
		this.pid = pid;
	}

	public String getRemark() {
		return this.remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public Integer getLevel() {
		return this.level;
	}

	public void setLevel(Integer level) {
		this.level = level;
	}

	public String getFlag() {
		return this.flag;
	}

	public void setFlag(String flag) {
		this.flag = flag;
	}

	public boolean equals(Object other) {
		if ((this == other))
			return true;
		if ((other == null))
			return false;
		if (!(other instanceof EipProductTypeId))
			return false;
		EipProductTypeId castOther = (EipProductTypeId) other;

		return ((this.getPtid() == castOther.getPtid()) || (this.getPtid() != null
				&& castOther.getPtid() != null && this.getPtid().equals(
				castOther.getPtid())))
				&& ((this.getName() == castOther.getName()) || (this.getName() != null
						&& castOther.getName() != null && this.getName()
						.equals(castOther.getName())))
				&& ((this.getPid() == castOther.getPid()) || (this.getPid() != null
						&& castOther.getPid() != null && this.getPid().equals(
						castOther.getPid())))
				&& ((this.getRemark() == castOther.getRemark()) || (this
						.getRemark() != null
						&& castOther.getRemark() != null && this.getRemark()
						.equals(castOther.getRemark())))
				&& ((this.getLevel() == castOther.getLevel()) || (this
						.getLevel() != null
						&& castOther.getLevel() != null && this.getLevel()
						.equals(castOther.getLevel())))
				&& ((this.getFlag() == castOther.getFlag()) || (this.getFlag() != null
						&& castOther.getFlag() != null && this.getFlag()
						.equals(castOther.getFlag())));
	}

	public int hashCode() {
		int result = 17;

		result = 37 * result
				+ (getPtid() == null ? 0 : this.getPtid().hashCode());
		result = 37 * result
				+ (getName() == null ? 0 : this.getName().hashCode());
		result = 37 * result
				+ (getPid() == null ? 0 : this.getPid().hashCode());
		result = 37 * result
				+ (getRemark() == null ? 0 : this.getRemark().hashCode());
		result = 37 * result
				+ (getLevel() == null ? 0 : this.getLevel().hashCode());
		result = 37 * result
				+ (getFlag() == null ? 0 : this.getFlag().hashCode());
		return result;
	}

}